package com.treeroot.tk_mybatis.service.impl;


import com.treeroot.tk_mybatis.entity.User;
import com.treeroot.tk_mybatis.mapper.UserMapper;
import com.treeroot.tk_mybatis.service.UserService;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author : JCccc
 * @CreateTime : 2020/8/13
 * @Description :
 **/
@Service
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {

    //UserMapper需要继承tk-myabtis的Mapper,这样才能顺利使用到tk-mybatis帮我们写好的N多mapper层方法和sql语句
    @Resource
    UserMapper userMapper;


    //仅仅需要编写额外扩展的业务方法
    @Override
    public List<Map> getMyCustom(int age) {
        return userMapper.getMyCustom(age);
    }

}